import request from '@/utils/request'

// 查询项目债权估值列表
export function listDealDebtValuation(query) {
  return request({
    url: '/debt/dealDebtValuation/list',
    method: 'get',
    params: query
  })
}

// 查询项目债权估值详细
export function getDealDebtValuation(id) {
  return request({
    url: '/debt/dealDebtValuation/' + id,
    method: 'get'
  })
}

// 保存项目债权估值
export function saveDealDebtValuation(data) {
  return request({
    url: '/debt/dealDebtValuation/save',
    method: 'post',
    data: data
  })
}

// 删除项目债权估值
export function delDealDebtValuation(id) {
  return request({
    url: '/debt/dealDebtValuation/' + id,
    method: 'delete'
  })
}

// 删除出资主体数据
export function delValuationInvest(id) {
  return request({
    url: '/debt/dealDebtValuationInvest/' + id,
    method: 'delete'
  })
}

// 导出项目债权估值
export function exportDealDebtValuation(query) {
  return request({
    url: '/debt/dealDebtValuation/export',
    method: 'get',
    params: query
  })
}

// 查询公司估值信息返回给Chart组件使用
export function valuationChart(query) {
  return request({
    url: '/debt/dealDebtValuation/valuationChart',
    method: 'get',
    params: query
  })
}
